public class RockPaperScissors {

	public Result play(RPSEnum p1, RPSEnum p2) {
		if (p1.equals(p2))
			return Result.TIE;

		if (p1.equals(RPSEnum.ROCK) && p2.equals(RPSEnum.SCISSORS))
			return Result.WIN;
		if (p1.equals(RPSEnum.SCISSORS) && p2.equals(RPSEnum.PAPER))
			return Result.WIN;
		if (p1.equals(RPSEnum.PAPER) && p2.equals(RPSEnum.ROCK))
			return Result.WIN;

		if (p1.equals(RPSEnum.ROCK) && p2.equals(RPSEnum.PAPER))
			return Result.LOST;
		if (p1.equals(RPSEnum.SCISSORS) && p2.equals(RPSEnum.ROCK))
			return Result.LOST;
		if (p1.equals(RPSEnum.PAPER) && p2.equals(RPSEnum.SCISSORS))
			return Result.LOST;

		return null;
	}

	public Result play(Player p1, Player p2) {
		
		Player player = new Player(null, null);
		RockPaperScissors rps = new RockPaperScissors();
		
		
		for(int i=0;i<10;i++){
		RPSEnum player1= player.getNextMove();
		RPSEnum player2=player.getNextMove();
		
		Result result = rps.play(player1, player2);
		
		
		int scoreP1=player.getScore();
		
		
		}
		return Result.LOST;

	}
}
